<template>
  <a-row>
    <Nav />
    <a-col :span="20" class="main-container">
      <div class="main-content bordered-section">
        <h3 class="section-title-h3">错题统计</h3>
        <MyWrongTable />
      </div>
    </a-col>
  </a-row>
</template>

<script>
import { PlusOutlined } from "@ant-design/icons-vue";
import Nav from "@/components/Nav.vue";
import { SmileOutlined, DownOutlined } from "@ant-design/icons-vue";
import MyWrongTable from "@/components/MyWrongTable.vue";
export default {
  components: {
    MyWrongTable,
    PlusOutlined,
    Nav,
  },
  data() {
    return {};
  },
  setup() {
    return {};
  },
};

const columns = [
  {
    name: "Name",
    dataIndex: "name",
    key: "name",
  },
  {
    title: "Age",
    dataIndex: "age",
    key: "age",
  },
  {
    title: "Address",
    dataIndex: "address",
    key: "address",
  },
  {
    title: "Tags",
    key: "tags",
    dataIndex: "tags",
  },
  {
    title: "Action",
    key: "action",
  },
];

const data = [
  {
    key: "1",
    name: "John Brown",
    age: 32,
    address: "New York No. 1 Lake Park",
    tags: ["nice", "developer"],
  },
  {
    key: "2",
    name: "Jim Green",
    age: 42,
    address: "London No. 1 Lake Park",
    tags: ["loser"],
  },
  {
    key: "3",
    name: "Joe Black",
    age: 32,
    address: "Sidney No. 1 Lake Park",
    tags: ["cool", "teacher"],
  },
];
</script>

<style scoped>
table {
  width: 100%;
  border-collapse: collapse;
}

table,
th,
td {
  border: 1px solid black;
}

th,
td {
  padding: 8px;
  text-align: center;
}

/* General Styles */
.bordered-section {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 16px;
  padding: 16px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.section-title {
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 30px;
  color: white;
  padding-bottom: 29px;
  font-family: "Microsoft YaHei UI";
  font-weight: bold;
}

.section-subtitle {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 12px;
  color: #666;
  border-bottom: 1px solid #d9d9d9;
  padding-bottom: 6px;
}

/* Loading Animation */
.loading-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
  text-align: center;
}

/* Navigation Bar */
.nav-bar {
  height: 100vh;
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  color: #fff;
}

.menu-container {
  text-align: center;
  background-image: url("../assets/bg.png"); /* 确保路径正确 */
  background-size: cover; /* 调整图片大小以覆盖整个背景 */
  background-position: center; /* 居中显示背景图片 */
  background-repeat: no-repeat; /* 防止背景重复 */
}

.menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 30px;
  font-family: "Microsoft YaHei UI";
  font-weight: bold;
}

.menu-item {
  padding: 10px 0;
  cursor: pointer;
  color: #fff;
  transition: background-color 0.3s;
  margin: 5px 0;
}

.menu-item:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Main Content */
.main-container {
  background-color: #f9f9f9;
  padding: 20px;
}

.uploaded-image img {
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  padding: 8px;
}

.response-message {
  white-space: pre-wrap;
  word-break: break-word;
}

.response-message p {
  font-size: 16px;
  color: #333;
  line-height: 1.6;
}

.section-title-h3 {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 16px;
  color: black;
  padding-bottom: 8px;
}

.colortxt {
  font-size: 45px;
  background: linear-gradient(to right, white, pink);
  /* -webkit-background-clip: text; */
  color: transparent;
}
</style>
